﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using ToolBoxPro;
using LinqObj;
using System.Collections.Generic;
public partial class artwork : System.Web.UI.Page
{
    private int campaignID;
    private int propertyID;
    private Property property;

    protected void Page_Load(object sender, EventArgs e)
    {
        string t = Request.QueryString["campaign_id"];
        string p = Request.QueryString["property_id"];
        if(t != null && t != "")
            this.campaignID = Convert.ToInt32(t);
        if (p != null && p != "")
            this.propertyID = Convert.ToInt32(p);
        if (this.campaignID > 0 && this.propertyID > 0)
        {
            property = Property.GetProperty(this.propertyID);

            IDictionary<int, Service_Category> categoryList = Service_Category.LoadServiceCategories(Session[FormContract.AGENT_GROUP_ID].ToString());
            //OrderListBuilder builder = new OrderListBuilder(Order.LoadOrderByCampaignID(this.campaignID), property, categoryList);
            //this.ph_orderList.Controls.Add(builder.divOrderList);
        }
    }
}
